import request from '@/utils/request'

// 查询采购周期列表
export function synData(query) {
  return request({
    url: '/purchase/PurchaseCycle/synData',
    method: 'get',
    params: query
  })
}
// 查询采购周期列表
export function listPurchaseCycle(query) {
  return request({
    url: '/purchase/PurchaseCycle/list',
    method: 'get',
    params: query
  })
}
// 查询采购周期详细
export function getPurchaseCycle(id) {
  return request({
    url: '/purchase/PurchaseCycle/' + id,
    method: 'get'
  })
}

// 新增采购周期
export function addPurchaseCycle(data) {
  return request({
    url: '/purchase/PurchaseCycle',
    method: 'post',
    data: data
  })
}

// 修改采购周期
export function updatePurchaseCycle(data) {
  return request({
    url: '/purchase/PurchaseCycle',
    method: 'put',
    data: data
  })
}

// 删除采购周期
export function delPurchaseCycle(id) {
  return request({
    url: '/purchase/PurchaseCycle/' + id,
    method: 'delete'
  })
}
